<div>
    <h1>HIVE SEARCH</h1>
    <div class="div">
        在这里输入你想要搜索的HIVE表
    </div>

    <div>
        <img src="assets/img/hive.png" alt="My Icon" class="my-icon" />
        <input type="search" [(ngModel)]="searchQuery" placeholder="Search...">
        <button (click)="search()">Search</button>
    </div>
    <div *ngFor="let result of searchResults">
        <!-- 在这里显示每个搜索结果 -->
        <div style="display: flex; justify-content: space-between;">
            <div *ngFor="let key of result | keyvalue">
                <p>{{key.key}}: {{key.value}}</p>
            </div>
        </div>
    </div>


</div>

<app-paginator [nzTotal]="nzTotal" [nzPageSize]="nzPageSize" [(pageIndex)]="pageIndex" (pageIndexChange)="onPageChange($event)"></app-paginator>